<#include "/WEB-INF/default/fragment/header.ftl">
<body>

<#include "/WEB-INF/default/fragment/nav.ftl">

<style>
.legend {
  border-bottom: 1px solid red;
  padding: 0px;
}
fieldset {
  width: 80%;
  margin: 0 auto;
}
</style>
<div class="container">
  <div class="tms-logo"><img class="center-block" src="${request.contextPath}/assets/images/logo.png" alt=""></div>
</div>

<div class="container">
<form class="form-horizontal" action="${request.contextPath}/team-post.action?team.id=<#if team?? && team.id??>${team.id}</#if>" method="post">
  <legend class="clearfix">
    <div class="pull-left"><h4>操作失败</h4></div>
    <div class="pull-right">
      <button type="submit" class="btn btn-success j_back">返回</button>
    </div>
  </legend>
  <fieldset>
    <div class="center-block">
      <img class="center-block" width="128" src="${request.contextPath}/assets/images/failed.png" alt="">
    </div>
    <div class="center-block">
    <#if actionErrors?exists>
      <#list actionErrors as msg>
      <div class="text-center">${msg}</div>
      </#list>
    </#if>
    </div>
    
  </fieldset>
</form>
</div>
<script>
$(document).on('click', '.j_back', function() {
  var url = '${url!""}';
  if (url !== '') {
    window.location.href = url;
  } else {
    window.history.back(-1);
  }
});
</script>
</body>